package com.eurabia.eggchat.service;

import com.eurabia.eggchat.VO.ResultVO;
import com.eurabia.eggchat.pojo.form.SysEggchatUserForm;

import javax.servlet.http.HttpServletRequest;

public interface SysEggchatLoginService {

    /**
     * 通过用户名和密码查询用户(登录)
     * @param form
     * @param request
     * @return ResultVO
     */
    ResultVO login(final SysEggchatUserForm form, HttpServletRequest request);

    /**
     * 退出
     * @param request
     * @return ResultVO
     */
    ResultVO loginOut(HttpServletRequest request);

    /**
     * 注册方法
     * @param form
     * @return ResultVO
     */
    ResultVO regist(final SysEggchatUserForm form);

    /**
     * 更新密码
     * @param form
     * @return
     */
    ResultVO updateUserPass(final SysEggchatUserForm form,HttpServletRequest request);

    /**
     * 注销
     * @param id
     * @return
     */
    ResultVO cancel(Long id);

}
